package com.zackary.spring_blogs.dao;

import com.zackary.spring_blogs.entity.BlogCategory;
import com.zackary.spring_blogs.entity.BlogTag;
import com.zackary.spring_blogs.entity.BlogTagCount;
import com.zackary.spring_blogs.util.PageQueryUtil;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Administrator
 * @version 1.0
 * @description: TODO
 * @date 2024/11/20 16:17
 */
@Mapper
public interface BlogTagMapper {

//博文标签一般插入
    int insert(BlogTag record);

    int insertSelective(BlogTag record);

    int batchInsertBlogTag(List<BlogTag> tagList);
    int deleteByPrimaryKey(Integer tagId);

    int deleteBatch(Integer[] ids);


    int updateByPrimaryKeySelective(BlogTag record);

    int updateByPrimaryKey(BlogTag record);

    List<BlogTag> findTagList(PageQueryUtil pageUtil);
    BlogTag findByPrimaryKey(Integer tagId);

    BlogTag findByTagName(String tagName);

    List<BlogTagCount> getTagCount();
    int getTotalTags(PageQueryUtil pageUtil);

}
